package cn.hh.nacos;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/info")
@ResponseBody
public class ConsumerContrroler {


    @Autowired
    private ConsumerService providerService;

    @PostMapping("/list")
    public Map<String,Object> list(@RequestParam Map<String,Object> param){
        Map<String,Object> result = new HashMap<String,Object>();
        result = providerService.queryCust(param);
        return result;
    }
}
